package com.mingqijia.gassafety.shared.cqrs;

import lombok.EqualsAndHashCode;
import lombok.Value;
import org.springframework.context.ApplicationEvent;

/**
 * 消息事件
 * @author Damon S.
 * @version v0.2
 * @date 2022-03-09 11:38
 */
@Value
@EqualsAndHashCode(callSuper = true)
public class MessageEvent extends ApplicationEvent {

    Object payload;

    public MessageEvent(Object source, Object payload) {
        super(source);
        this.payload = payload;
    }
}
